package com.nuoniu.sibanyun.entity.crm;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * <p>
 * 用户等级
 * </p>
 *
 * @author 小啊刚
 * @since 2022-05-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("crm_user_level")
@ApiModel(value="CrmUserLevel对象", description="用户等级")
public class CrmUserLevel extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "当前等级名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "当月等级")
    @TableField("level")
    private Integer level=1;

    @ApiModelProperty(value = "年份")
    @TableField("year")
    private Integer year;

    @ApiModelProperty(value = "月份")
    @TableField("month")
    private Integer month;

    @ApiModelProperty(value = "当月邀请人数")
    @TableField("invite_count")
    private Integer inviteCount = 0;

    @ApiModelProperty(value = "当月累计客户数")
    @TableField("crm_count")
    private Integer crmCount = 0;

    @ApiModelProperty(value = "当月分佣订单数")
    @TableField("order_count")
    private Integer orderCount = 0;

    @ApiModelProperty(value = "当月分佣订单额")
    @TableField("order_amount")
    private BigDecimal orderAmount = new BigDecimal(0.0);

    @ApiModelProperty(value = "当月结算佣金")
    @TableField("settlement_commission")
    private BigDecimal settlementCommission  = new BigDecimal(0.0);

    @ApiModelProperty(value = "当月直推佣金系数")
    @TableField("direct_commission")
    private Double directCommission = 1.0;

    @ApiModelProperty(value = "当月邀请奖励系数")
    @TableField("Invite_reward")
    private Double inviteReward = 1.0;


}
